libxl/netbsd: check num_exec in hotplug function
authorWei Liu <wei.liu2@citrix.com>
Sat, 2 Jul 2016 11:35:30 +0000 (12:35 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 6 Jul 2016 17:22:53 +0000 (18:22 +0100)
commitdb59dbc46e0312a38978d22c6bd72b554a2f1c91
treedbb138baa04577bfaac1d344e398f2639cbb6ca0
parent33c18b709a36b10a3c6a3a8b4a0d99eaef1f6e46
libxl/netbsd: check num_exec in hotplug function

This basically replicates the same logic in libxl_linux.c but with one
change -- only test num_exec == 0 in nic hotplug case because NetBSD let
QEMU call a script itself. Without this patch libxl will loop
indefinitely trying to execute hotplug script.

Reported-by: John Nemeth <jnemeth@cue.bc.ca>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
tools/libxl/libxl_netbsd.c